<?php
class User_model extends CI_Model{    
 function __construct()
 {
    parent::__construct();
 }
 function getListUser($limit=NULL,$offset=NULL)
 {
    $this->db->from("users");
    if($limit&&$offset) $this->db->limit($limit,$offset);
    $result=$this->db->get();
    return $result->result();
 }
}
 ?>